//
//  AboutViewController.m
//  Qyer
//
//  Created by 赵宇 on 15/9/26.
//  Copyright (c) 2015年 赵宇. All rights reserved.
//

#import "AboutViewController.h"
#import "BaseHeader.h"
@interface AboutViewController ()

@end

@implementation AboutViewController
-(void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBarHidden = YES;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    [self creatNav];
    [self creatText];
}
-(void)creatNav
{
    UIView *nav = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 64)];
    nav.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:nav];
    
    UIButton *backBut = [UIButton buttonWithType:UIButtonTypeCustom];
    backBut.frame = CGRectMake(10, 25, 30, 30);
    [backBut setImage:[UIImage imageNamed:@"iconfont-31fanhui1"] forState:UIControlStateNormal];
    [backBut addTarget:self action:@selector(goBackClick) forControlEvents:UIControlEventTouchUpInside];
    [nav addSubview:backBut];
    
    UILabel *titleLab = [[UILabel alloc]initWithFrame:CGRectMake(0, 25, SCREEN_WIDTH, 30)];
    titleLab.text = @"关 于";
    titleLab.font = [UIFont systemFontOfSize:17.];
    titleLab.textAlignment = YES;
    titleLab.textColor = [UIColor whiteColor];
    [nav addSubview:titleLab];
    nav.backgroundColor = [UIColor colorWithRed:34./255 green:169./ 255 blue:118./255 alpha:1];
    [nav release];
}
-(void)goBackClick
{
    [self.navigationController popViewControllerAnimated:YES];
}

-(void)creatText
{
    UILabel *textLab = [[UILabel alloc]initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 100)];
    textLab.text = @"1.1 版本";
    textLab.textAlignment = YES;
    textLab.font = [UIFont systemFontOfSize:20.];
    textLab.textColor = [UIColor grayColor];
    [self.view addSubview:textLab];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
